<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@page session="false"%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<html>
<head>
    
    <jsp:include page="common/style.jsp" />
</head>
<body>
    <div class="navbar navbar-inverse navbar-fixed-top">
      <div class="navbar-inner">
        <div class="container">
          <button type="button" class="btn btn-navbar" data-toggle="collapse" data-target=".nav-collapse">
            <span class="icon-bar"></span>
            <span class="icon-bar"></span>
            <span class="icon-bar"></span>
          </button>
          <a class="brand" href="${pageContext.request.contextPath}/admin">Panel administracyjny</a>
          <div class="nav-collapse collapse">
            <ul class="nav">
              
              <li><a href="#about">Użytkownicy</a></li>
              <li><a href="#contact">Treść</a></li>  
            
              <c:if test="${pageContext.request.userPrincipal.name != null}">
                            
                                
             
                                   
                                   <li class="dropdown">
                <a href="#" class="dropdown-toggle" data-toggle="dropdown">${pageContext.request.userPrincipal.name} <b class="caret"></b></a>
                <ul class="dropdown-menu">
                  <li><a href="${pageContext.request.contextPath}/">Powrót na stronę</a></li>
                  <li><a href="javascript:formSubmit()"> Wyloguj</a></li>
                </ul>
              </li>
                            
              </c:if>
              </ul>
              
            
              
              <c:url value="/j_spring_security_logout" var="logoutUrl" />
              <form class="navbar-form pull-right" action="${logoutUrl}" method="post" id="logoutForm">
                <input type="hidden" name="${_csrf.parameterName}"
                                value="${_csrf.token}" />
              </form>
              <script>
                function formSubmit() {
                    document.getElementById("logoutForm").submit();
                }
              </script>
              
            
          </div><!--/.nav-collapse -->
        </div>
      </div>
    </div>

    <div class="container">

      <!-- Main hero unit for a primary marketing message or call to action -->
      <div class="hero-unit">
        <h1>Hello, world!</h1>
        <p>This is a template for a simple marketing or informational website. It includes a large callout called the hero unit and three supporting pieces of content. Use it as a starting point to create something more unique.</p>
        <p><a href="#" class="btn btn-primary btn-large">Learn more &raquo;</a></p>
      </div>

      
      


	
    <jsp:include page="common/footer.jsp" />
</body>
</html>